package mvp.levelup.web.listeners;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * Created with IntelliJ IDEA.
 * User: valera
 * Date: 5/3/14
 * Time: 12:55 PM
 */
@WebListener
public class MyServletRequestListener implements ServletRequestListener {

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.err.println("Req inited: " + sre.getServletRequest().getLocalName());
    }

    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.err.println("Req destroyed: " + sre.getServletRequest().getLocalName());
    }
}
